﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="add.aspx.cs" Inherits="admin_user_add" %>
<%@ Register Assembly="SuperAuthenticationCode" Namespace="SuperAuthenticationCode.ServerControl"
    TagPrefix="cc2" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link href="../artcles/StyleSheet.css" type="text/css" rel="Stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<h2>添加用户</h2>
<div style="width:700px;padding:10px;">
    <div style="width:680px;padding:10px">
        <table style="width:100%">
                <tr>
        
                    <td style="text-align:right;width:40%">
                        用户名：<asp:TextBox ID="NameBox" runat="server" CssClass="titleinput" 
                            ontextchanged="NameBox_TextChanged" AutoPostBack="true"></asp:TextBox>
                    </td>
                    <td style="text-align:left">
                        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                        <ContentTemplate>
                        <span style="color:red"><asp:Literal ID="vname" runat="server"></asp:Literal></span>
                        </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="NameBox" EventName="TextChanged" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </td>
        
                </tr>
                <tr>
                    <td style="text-align:right">
                        密 码：<asp:TextBox ID="PwdBox" runat="server" CssClass="titleinput" 
                            TextMode="Password" ontextchanged="PwdBox_TextChanged" AutoPostBack="true"></asp:TextBox>
                    </td>
                    <td style="text-align:left">
                        <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                        <ContentTemplate>
                            <font style="color:Red"><asp:Literal ID="pwdlit" runat="server"></asp:Literal></font>
                        </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="PwdBox" EventName="TextChanged" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right">
                        重复密码：<asp:TextBox ID="rPwdBox" runat="server" CssClass="titleinput" 
                            ontextchanged="rPwdBox_TextChanged" AutoPostBack="true" 
                            TextMode="Password"></asp:TextBox>
                    </td>
                    <td style="text-align:left">
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <span style="color:red"><asp:Literal ID="vpwd" runat="server"></asp:Literal></span>
                        </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="rPwdBox" EventName="TextChanged" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right">
                        Email：<asp:TextBox ID="EmaiBox" runat="server" CssClass="titleinput" 
                            ontextchanged="EmaiBox_TextChanged" AutoPostBack="true"></asp:TextBox>
                    </td>
                    <td style="text-align:left">
                        <asp:UpdatePanel ID="UpdatePanel5" runat="server">
                        <ContentTemplate>
                            <font style="color:Red"><asp:Literal ID="emaillit" runat="server"></asp:Literal></font>
                        </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="EmaiBox" EventName="TextChanged" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right">
                        验证码：<asp:TextBox 
                            ID="CodeBox" runat="server" CssClass="titleinput" AutoPostBack="true" 
                            Width="70px" ontextchanged="TextBox1_TextChanged"></asp:TextBox>
                    </td>
                    <td style="text-align:left">
                        <cc2:authenticationcode ID="AuthenticationCode1" runat="server" name="code" 
                            BackColor="White" CodeColorMode="GRADIENT_COLOR" CodeFontSizeMode="SIZE_FIXED" 
                            ContentField="DIGIT_ONLY" ExpireTime="300" ForeColor="White" Height="30px" 
                            NoiseMode="NONE" Width="70px">
                        </cc2:authenticationcode>
                        <asp:UpdatePanel ID="UpdatePanel6" runat="server">
                            <ContentTemplate>
                                <span style="color:red"><asp:Literal ID="validatelit" runat="server"></asp:Literal></span>
                            </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="CodeBox" EventName="TextChanged" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td style="text-align:center">
                        <asp:Button ID="Button1" runat="server" Text="添加" CssClass="bluebutton" 
                            BorderStyle="None" onclick="Button1_Click" />
                    </td>
                    <td style="text-align:left">
                        </td>
                </tr>
            </table>
    </div>
</div>
</asp:Content>

